﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="PublicChat.aspx.cs" Inherits="FashionMural.Web.PublicChat" %>

<%@ Import Namespace="Omes.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="position_bg keting">
        <div class="position_con">
            <div class="position">
                首页 > 关于我们 > 互动客厅
            </div>
            <!--公司简介开始-->
            <div class="contact">
                <ul>
                    <li><a href="/CompanyDesc.aspx">公司简介</a></li>
                    <li><a href="/AboutDesc.aspx">招贤纳士</a></li>
                    <li><a href="/News.aspx">新闻资讯</a></li>
                    <li><a href="/Contact.aspx">联系我们</a></li>
                    <li class="conpany"><a href="#">互动客厅</a></li>
                    <ul>
            </div>
            <div class="hudong">
                <img src="images/goutong.jpg" />
                <asp:TextBox ID="LeaveContent" runat="server" Text="输入您想说的话" TextMode="MultiLine"></asp:TextBox>
                <p>
                    <asp:TextBox ID="TwoUserName" runat="server" Text="请输入昵称" class="text"></asp:TextBox>
                    <asp:Button ID="CheckInLM" runat="server" CssClass="btn" OnClick="Check_Click" />
                </p>
            </div>
            <div class="hud_qq">
                <span>加入液体壁纸创业畅聊QQ群：第一客厅：26647298 </span>
            </div>
            <div class="hud_con">
                <%foreach (LeaveMessage leaveMessage in LeaveMessages)
                  {%>
                <div class="talk">
                    <div class="touxiang">
                        <img src="images/touxiang.jpg" />
                    </div>
                    <div class="megs">
                        <h1>
                            <a href="###">
                                <%=leaveMessage.UserName %></a><%=leaveMessage.Content %>
                        </h1>
                        <p>
                            <span>
                                <%=leaveMessage.Id %>楼</span> | <span>
                                    <%=leaveMessage.LeaveTime %></span>
                        </p>
                    </div>
                </div>
                <%} %>
                <div class="fanye">
                    <ul>
                        <li class="fir"><a href="/PublicChat.aspx?pageNum=1">首页</a></li>
                        <%if (CountPageNum > 0)
                          {%>
                        <%for (int i = 1; i <= (CountPageNum / 10) + 1; i++)
                          {
                              if ((i == CurrentPageNum) && (i <= 3))
                              {%>
                        <li class="fir" style="background-color: Gray;"><a href="/PublicChat.aspx?pageNum=<%=i %>">
                            <%=i %></a></li>
                        <%}
                              else
                              {%>
                        <li class="fir"><a href="/PublicChat.aspx?pageNum=<%=i %>">
                            <%=i %></a></li>
                        <%}
                          }%>
                        <%}%>
                        <li class="xyy"><a href="/PublicChat.aspx?pageNum=<%=CurrentPageNum+1 %>">下一页</a></li>
                        <li class="fir"><a href="/PublicChat.aspx?pageNum=<%=(CountPageNum/10)+1 %>">末页</a></li>
                    </ul>
                    <select>
                        <%for (int i = 1; i <= (CountPageNum / 10 + 1); i++)
                          {%>
                        <option onclick="location.href='/PublicChat.aspx?pageNum=<%=i %>'">
                            <%=i %></option>
                        <%
                          }%>
                    </select>
                    <p>
                        共<%=CountPageNum %>条
                    </p>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
